<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<head>
    <div data-th-replace="layout/head-top"></div>
</head>
<body>
    <div class="pt10">
        <div class="form-horizontal">
            <div class="form-group" style="margin:0 0 10px;">
                <label class="col-sm-2 control-label text-right">课程</label>
                <div class="col-sm-8">
                    <p class="form-control-static" th:if="${courseBuyRecord}!=null" th:text="${courseBuyRecord['course']['courseName']}">

                    </p>
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group" style="margin:0 0 10px;">
                <label class="col-sm-2 control-label text-right">原到到期时间</label>
                <div class="col-sm-8">
                    <p class="form-control-static" th:if="${courseBuyRecord}!=null" th:text="${courseBuyRecord['validTime']}">
                    </p>
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group" style="margin:0 0 10px;">
                <label class="col-sm-2 control-label text-right"><i class="c-red">*</i> 过期时间</label>
                <div class="col-sm-8">
                    <input id="validTime" class="laydate-icon form-control layer-date" name="validTime" th:if="${courseBuyRecord}!=null" th:value="${courseBuyRecord['validTime']}" style="width: 220px;"/>
                    <span class="help-block m-b-none c-999">选择设置课程有效时间</span>
                </div>
            </div>
            <div class="hr-line-dashed"></div>
        </div>
    </div>
    <div data-th-replace="layout/head-footer"></div>
    <script type="text/javascript" th:src="@{{path}/admin/libs/plugins/layer/laydate/laydate.js?v={v}(path=${staticPath},v=${v})}"></script>
    <script>
        $(function () {
            initLayerDate("#validTime",true);
        })
    </script>
</body>
</html>

